<?php
class SignInForm extends BaseForm
{

   public function configure()
   {

     $this->setNameFormat();

     $this->widgetSchema['username'] = new sfWidgetFormInput();
     $this->widgetSchema['password'] = new sfWidgetFormInputPassword();
     
     
     $this->setValidators( array(
        'username' => new sfValidatorString(array('min_length' => 2, 'max_length' => 100), array()),
     	'password' => new sfValidatorString(array('min_length' => 2, 'max_length' => 100), array()),
      ));

	 $this->setDefaults(array(
		 'username' => 'Username'
	 ));



   }
   
   public function setNameFormat(){
   		$this->widgetSchema->setNameFormat('signin[%s]');
   }

} 